﻿/*
 * Created by SharpDevelop.
 * User: tdptcj
 * Date: 24/10/2011
 * Time: 9:35
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.Windows.Data;

namespace MetaVideoEditorEvolved.Converter
{
	/// <summary>
	/// Description of ActorImagePathConverter.
	/// </summary>
	public class ActorImagePathConverter : IValueConverter
	{
		public ActorImagePathConverter()
		{
		}
		
		public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
		{
			if (string.IsNullOrEmpty((string)value))
			{
				return "./Images/MissingPerson.jpg";
			}
			else
			{
				return value;
			}
		}
		
		public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
		{
			throw new NotImplementedException();
		}
	}
}
